/*
 * @Author: 悦者生存 1002783067@qq.com
 * @Date: 2023-10-05 19:44:23
 * @LastEditors: 悦者生存 1002783067@qq.com
 * @LastEditTime: 2023-10-06 11:10:41
 * @FilePath: /koa2-ts-template/src/app/db/mysqlConfig.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// src/server/mysql/mysqlConfing.ts
import Config from '../config/config.default.js';

export default {
  host: Config.MYSQL.HOST,
  port: Config.MYSQL.PORT,
  username: Config.MYSQL.USER_NAME,
  password: Config.MYSQL.PASSWORD,
  database: Config.MYSQL.DB_NAME,
  multipleStatements: true, // 运行执行多条语句
  connectionLimit: Config.MYSQL.CONNECTION_LIMIT,
  connectTimeout: Config.MYSQL.CONNECT_TIMEOUT,
  acquireTimeout: Config.MYSQL.ACQUIRE_TIMEOUT,
  timeout: Config.MYSQL.TIMEOUT,
};
